/**
 *
 */
package com.zhuoyue.zhtj.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.eit.eitsite.common.persistence.DataEntity;

/**
 * 内部物品管理Entity
 * @author hss
 * @version 2017-09-18
 */
public class Interthing extends DataEntity<Interthing> {
	
	private static final long serialVersionUID = 1L;
	private String num;		// 学号
	private String tname;		// 物品
	private Date rdate;		// 日期
	private String teacher;		// 老师
	
	public Interthing() {
		super();
	}

	public Interthing(String id){
		super(id);
	}

	@Length(min=0, max=20, message="学号长度必须介于 0 和 20 之间")
	public String getNum() {
		return num;
	}

	public void setNum(String num) {
		this.num = num;
	}
	
	@Length(min=0, max=40, message="物品长度必须介于 0 和 40 之间")
	public String getTname() {
		return tname;
	}

	public void setTname(String tname) {
		this.tname = tname;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getRdate() {
		return rdate;
	}

	public void setRdate(Date rdate) {
		this.rdate = rdate;
	}
	
	@Length(min=0, max=50, message="老师长度必须介于 0 和 50 之间")
	public String getTeacher() {
		return teacher;
	}

	public void setTeacher(String teacher) {
		this.teacher = teacher;
	}
	
}